<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>全部书评 - 夜读书</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="author" content="夜读书">
    <meta name="description" content="夜读书中文网">
    <meta name="keywords" content="读书,阅读,小说,文学">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="{{ asset('/bootstrap-3.3.5-dist/css/bootstrap.min.css') }}">
    <link rel="stylesheet" href="{{ asset('/style/css/yds.css') }}">
    <script src="{{ asset('/scripts/jquery/jquery-1.11.3.min.js') }}"></script>
    <script src="{{ asset('/bootstrap-3.3.5-dist/js/bootstrap.min.js') }}"></script>
</head>
<body class="docs">
@include('books.partials.navtop')
@include('books.partials.nav')

<div class="docs-wrapper container">

    <article>
        <div class="tags">
            <h1>夜读书最受欢迎的书评</h1>
        </div>
        <div class="mod shupinglist">
            @if(count($booksreviews)!=0)
                @foreach($booksreviews as $booksreview)
                <div class="liec">
                    <table class="ydstable">
                    <tbody>        
                        <tr>
                        <td class="avatar">
                            <a href="{{url('info')}}/{{$booksreview->books->book_id}}" target="_blank">
                                <img src="{{url($booksreview->books->bimg)}}" title="{{$booksreview->books->book_name}}"></img>
                            </a>
                        </td>
                        <td class="update">
                            <div class="title"><a href="{{url('review')}}/{{$booksreview->id}}" title="{{$booksreview->title}}" target="_blank">{{$booksreview->title}}</a></div>
                            <div class="name">
                                <span>评论<a href="{{url('info')}}/{{$booksreview->books->book_id}}" target="_blank">《{{$booksreview->books->book_name}}》</a></span>
                                <span class="rating allstar{{$booksreview->rating}}0"></span>
                                <span class=""><a href="{{url('u')}}/{{$booksreview->uid}}">{{$booksreview->users->user_name}}</a></span>
                                <span>{{date('Y-m-d H:i',$booksreview->add_time)}}</span>
                            </div>
                            <div class="zhaiyao">{{mb_substr(strip_tags($booksreview->bookreview),0,160)}}...... <a href="{{url('review')}}/{{$booksreview->id}}" target="_blank">(阅读全文...)</a></div>
                        </td>
                        </tr>        
                    </tbody>
                    </table>
                </div>
                @endforeach
            @else
                <div class="nodata">还没有发表书评和读后感</div>
            @endif
        </div>
        {!! $booksreviews->render() !!}
    </article>

    <section class="sidebar">
        @include('books.partials.right')
    </section>

</div>

@include('books.partials.footer')

</body>
</html>
